<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "product".
 *
 * @property string $product_id
 * @property integer $goods_id
 * @property integer $type
 * @property integer $sale_status
 * @property double $sale_price
 * @property string $try_price
 * @property int $price_type
 */
class Product extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.product';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_id', 'type', 'sale_status', 'try_price','price_type'], 'integer'],
            [['sale_price'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'product_id' => 'Product ID',
            'goods_id' => 'Goods ID',
            'type' => 'Type',
            'sale_status' => 'Sale Status',
            'sale_price' => 'Sale Price',
            'try_price' => 'Try Price',
            'price_type'=>'price_type'
        ];
    }
}
